package org.wotou.authority.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import org.wotou.authority.domain.wtlogDO;

import java.io.Serializable;

/**
 * 日志持久层
 *
 * @author zhangQ
 * @date 2017/12/7
 */
@Repository
public interface HtlogDAO extends JpaRepository<wtlogDO, Serializable>, JpaSpecificationExecutor<wtlogDO>, PagingAndSortingRepository<wtlogDO, Serializable> {

    @Query("select c from wtlogDO c")
    public Page<wtlogDO> findAllByOrgId(Pageable pageable);
}
